import { Component, OnInit } from "@angular/core";

import { TableTab } from "../f10-shared/interface-shared";
import { scroll } from "../f10-shared/common-methods";

@Component({
  templateUrl: 'ranking.component.html',
  styleUrls: ['ranking.component.less']
})

export class RankingComponent implements OnInit {
  timer = null;
  subLists: TableTab[] = [
    {
      label: "成交明细",
      class: 'sub-title-0'
    },
    {
      label: "营业部上榜统计",
      class: 'sub-title-1'
    },
    {
      label: "上榜后表现",
      class: 'sub-title-2'
    }
  ]
  constructor () {}

  ngOnInit () {
  }

  tabToggle (event) {
    this.timer = scroll(`segment-container`, event, this.timer);
  }
}